/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-07-21
 * Time: 9:47
 */
public class BookList {
    private Book[] books=new Book[10];
    private int userSize;
    public BookList(){
        books[0] = new Book("三国演义","罗贯中",10);
        books[1] = new Book("西游记","吴承恩",15);
        books[2] = new Book("红楼梦","曹雪芹",5);
        userSize=3;
    }

    public Book getBooks(int i) {
        return books[i];
    }

    public void setBooks(Book Books,int i) {
        this.books[i] = Books;
    }

    public int getUserSize() {
        return userSize;
    }

    public void setUserSize(int userSize) {
        this.userSize = userSize;
    }
}
